#ifndef CLIENTHANDLER_H
#define CLIENTHANDLER_H
#include <QTcpSocket>

#include <QObject>

class ClientHandler : public QObject
{
    Q_OBJECT
public:
    explicit ClientHandler(QTcpSocket *client,QObject *parent);
    void write(const QByteArray &array);
signals:
    void received(const QByteArray&,QTcpSocket*);

public slots:
    void onReadMessage();
private:
    QTcpSocket *mSocket;
};

#endif // CLIENTHANDLER_H
